﻿@using RMS.EF.Model
@model RMS_Program_Extend

<div class="form-horizontal">

    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.EDeleted)
    @Html.HiddenFor(model => model.CreationTime)
    @Html.HiddenFor(model => model.CreationUser)
    @Html.HiddenFor(model => model.LastUpdateTime)
    @Html.HiddenFor(model => model.LastUpdateUser)
    <div class="form-group">
        @Html.LabelFor(model => model.Name, "Name", htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control", @maxlength = 50 } })
            @Html.ValidationMessageFor(model => model.Name)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.Domain, "Domain", htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.Domain, new { htmlAttributes = new { @class = "form-control", @maxlength = 50 } })
            @Html.ValidationMessageFor(model => model.Domain)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.Ordering, "Ordering", htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.Ordering, new { htmlAttributes = new { @class = "form-control", @maxlength = 10 } })
            @Html.ValidationMessageFor(model => model.Ordering)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.EStatus, "Status", htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.DropDownListFor(model => model.EStatus, new List<SelectListItem>()
           {
               new SelectListItem() {Value=(E_Status.Disable).ToString(),Text="Disable" },
               new SelectListItem() {Value=(E_Status.Enable).ToString(),Text="Enable" }
           }, new { @class = "form-control" })
            @Html.ValidationMessageFor(model => model.EStatus)
        </div>
    </div>

</div>
